<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.staticfile.org/vue/3.0.5/vue.global.js"></script>
    <title>Document</title>
</head>

<body>

    <div id="app">

    </div>
    <template id="main">
        <div style="color: red;">
            {{main}}
            <firstvue></firstvue>
            
        </div>
    </template>
    <template id="first">
        <div style="color: blue;">
            {{first}}
            <twovue></twovue>
        </div>
    </template>
    <template id="two">
        <div style="color: yellow;">
            {{two}}
        </div>
    </template>
</body>

<script>

    let twoconfig = {
        template: '#two',
        data() {
            return {
                two: 'two info'
            }
        }
    };

    let firstconfig = {
        template: '#first',
        data() {
            return {
                first: 'first info'
            }
        },
        components: {
            twovue: twoconfig
        }
    };

    let mainconfig = {
        template: '#main',
        data() {
            return {
                main: 'main info'
            }
        },
        components: {
            firstvue: firstconfig
        }
    };
   


    Vue.createApp(mainconfig).mount("#app");
    // Vue.createApp(firstconfig).mount("#app");
    // Vue.createApp(twoconfig).mount("#app");

</script>

</html>